<style type="text/css">
#apDiv1 {
	position: absolute;
	left: 345px;
	top: 308px;
	width: 170px;
	height: 80px;
	z-index: 1;
	line-height: 20px;
	font-family: "微軟正黑體";
}
#apDiv2 {
	color: #FFF;
	text-align: center;
	position: absolute;
	left: 521px;
	top: 348px;
	width: 117px;
	height: 19px;
	z-index: 1;
	background-image: url(images/button2.png);
	background-repeat: no-repeat;
	padding-top: 6px;
}
.white {
	color: #FFF;
}
.white:hover {
	color: #FFF;
}
#apDiv2:hover {
	color: #FFF;
	text-align: center;
	background-image: url(images/button2OVER.png);
	background-repeat: no-repeat;
	height: 19px;
	width: 117px;
	padding-top: 6px;
}
#apDiv3 {
	position: absolute;
	left: 300px;
	top: 245px;
	width: 380px;
	height: 25px;
	z-index: 1;
	text-align:right;
}
#apDiv4 {
	position: absolute;
	left: 10px;
	top: 941px;
	width: 163px;
	height: 45px;
	z-index: 1;
}
#apDiv8 {
	position: absolute;
	left: 119px;
	top: 345px;
	width: 150px;
	height: 28px;
	z-index: 1;
}
</style>
<script>
function add2cart(){
	var url = '<?=Yii::app()->createUrl('shop/add2cart',array('pid'=>$row->pid))?>';
	var num = document.getElementById('count').value;
	window.location.href=url+'&count='+num;
}
</script>
<div id="contener" _height="auto">
	<div class="left_menu">
		<?php $this->beginWidget('application.widget.site.classWidget'); ?>
		<?php $this->endWidget(); ?>
		<?php $this->beginWidget('application.widget.site.productWidget'); ?>
		<?php $this->endWidget(); ?>
	</div>
	<div class="main">
		<?php $this->beginWidget('application.widget.site.newWidget'); ?>
		<?php $this->endWidget(); ?>
		<div class="right_mainBox">
			<div class="right_mainBox_top"></div>
			<div class="mainContentBox">
				<div id="center">
					<div id="left"><img src="<?=Yii::app()->params['productPath'].'/'.$row->pic2?>" width="200" height="260" /></div>
					<div id="apDiv8"> 購買數量&nbsp;
						<input type="text" size="4" name="count" id="count" value="1" />
					</div>
					<div id="right">
						<h3 class="proTitle"><?=$row->pname?></h3>
						<?=$row->briefing?>
					</div>
					<?php
					if($row->hongyun || $row->coin){
					?>
						<div class="point" id="apDiv3">&lt; <img src="images/store/dollar2.png" width="21" height="21" align="absmiddle" /> 贈送<?php if($row->hongyun){?>點數<?=$row->hongyun?>點 <?php } if($row->coin){?>購物金<?=$row->coin?>元<?php }?> &gt;</div>
					<?php
					}
					?>
					<div id="apDiv2"><a href="###" onclick="add2cart();" class="white" >放入購物車</a></div>
					<div id="apDiv1">
						<p>建議售價<span class="doubledeleter">$<?=$row->oldprice?></span><br />
						</p>
						<p> 網路價<span class="price">$<?=$row->price?> </span></p>
					</div>
				</div>
				<div id="foot">
					<div id=proIntroduce>本產品詳細介紹</div>
					<div style="width:685px; line-height:16px">
						<?=$row->description?>
					</div>
				</div>
			</div>
			<div class="right_mainBox_bottom"></div>
		</div>
	</div>
</div>
